<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%--jstl을 쓰기 위해 사용 --%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %><%--숫자 포맷을 사용하기 위해 사용 --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"  prefix="fn"%><%--함수들을 이용하기 위해 사용 --%>
<%@ taglib prefix="c-rt" uri="http://java.sun.com/jstl/core_rt" %>  <%-- ie버전 확인에 쓰기 위해 씀 --%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<!--<script type="text/javascript" src="script/project.js"></script>-->
<script type="text/javascript">
/*//textarea출력->div 출력
function fncSetText(al)
{
    var str = '';
    for(var i=0; i<al.length; i++)
    {
        if(!str) str += al[i];
        else str += '<br />'+al[i];
    }
    document.getElementById("disp").innerHTML = str;
}
*/
</script>
</head>
<%--
<body onload="moveInsertPage('mraasset','${requestScope.update }'); fncSetText('${vo.raitem_etc }')">
 --%>
 <body onload="moveInsertPage('mraasset','${requestScope.update }');">
<div class="box">
      		<h4 class="white">
      			<span class="align-left">RA자산식별</span>
	      		<span class="align-right">상태 :
		      		<c:choose>
		      			<c:when test="${sessionScope.magamSession[1].state =='Y'}">
		      				 마감
		      			</c:when>
		      			<c:otherwise>
		      				 착수
		      			</c:otherwise>
		      		</c:choose>
	      		</span>
      		</h4>
	 <div class="box-container2">
		 <form action="riskIAction.do" method="post" name="mraasset">
			 <input type="hidden" name="mode" value="mraasset_update"></input>
			  <input type="hidden" name="raitem_id" id="insertNum" value="${vo.raitem_id}"></input>
			 <input type="hidden" name="pro_id" id="pro_id" value="${sessionScope.lastProId }"></input>
		 	<table class="insertTableL" >
	   			<tfoot>
	   				<tr>
	   					<td>
	   						<div class="align-left subjectTitle"> ■ RA정보프로필</div>
	                     	<div class="align-right">
	                     	 <c:choose>
	                       		<c:when test="${sessionScope.magamSession[1].state !='Y'}">
	                       		<!-- 마감 현황이 유무 판별(Y 시 입력 불가) -->
	                       			<a href="#" class="button" onclick="javascript: riskIWrite('mraasset');return false;"><span>저장</span></a>
	                       		</c:when>
	                       		<c:otherwise>
	                       			<a href="#" class="button1 addMargin" onclick="return false;"><span>저장</span></a>
	                       		</c:otherwise>
	                       	</c:choose>
	                     	
	                     	<a href="#" class="button" onclick="javascript: riskICancleWrite('mraasset')"><span>닫기</span></a>
	                     	
	                     	</div>
	                     </td>
	   				</tr>
	   			</tfoot>
	   		</table>
	   		<table class="insertTableL">
	   			<colgroup>
	   				<col width="110px"/>
	   				<col/>
	   				<col width="110px"/>
	   				<col/>
	   			</colgroup>
	   			<tbody>
	   				<tr>
	   					<td class="titleName">RA자산코드</td>
	   					<td>
							${vo.raitem_id}
						</td>
						<td class="titleName">갱신일자</td>
						<td>
							${vo.raitem_date}
						</td>
	   				</tr>
	   				<tr>
	   					<td class="titleName">RA자산명칭</td>
	   					<td>
							${vo.raitem_nm }
						</td>
						<td class="titleName">자산유형</td>
						<td>
							${vo.ak_nm2}
						</td>
	   				</tr>
	   				<tr>
	   					<td class="titleName">RA자산소유자</td>
	   					<td>
							 <input type="text" name="raitem_owner" id="raitem_owner" value="${vo.raitem_owner }" maxlength="30" class="width97"></input>
						</td>
						<td class="titleName">RA자산관리자</td>
						<td>
							<input type='text' name='raitem_manager' id='raitem_manager' value='${vo.raitem_manager}' maxlength='30' class="width97"></input>
						</td>
	   				</tr>
	   				<tr>
						<td class="titleName" style="vertical-align: middle">RA 자산 설명</td>
						<td colspan="3">
							<textarea class="textfiled" name="raitem_etc" rows="4" id="raitem_etc">${vo.raitem_etc }</textarea>
						</td>
					</tr>
	   			</tbody>
	   		</table>
	   		<br/>
	   		<table class="table-long">
	   			<tfoot>
	   				<tr>
	   					<td>
	   						<div class="align-left subjectTitle"> ● RA자산컨테이너</div>
	                     </td>
	   				</tr>
	   				<tr><td class="spaceLine"></td></tr>
	   			</tfoot>
	   		</table>
	   		<table class="table-long" style="margin: 0 auto;">
      			<colgroup>
				<!-- ie67인지 아닌지 판단 (위=ie)(아래는 그외)--> 
					<c-rt:choose>
						<c-rt:when test="${isMSIE67}">
							<col width="71px"/>
							<col width="85px"/>
							<col width="81px"/>
							<col width="63px"/>
							<col width="67px"/>
							<col width="67px"/>
							<col width="26px"/>
							<col width="30px"/>
							<col width="30px"/>
							<col width="55px"/>
							<col width="55px"/>
							<col/>
							<col width="15px"/>
						</c-rt:when>
						<c-rt:otherwise>
							<col width="80px"/>
							<col width="91px"/>
							<col width="74px"/>
							<col width="74px"/>
							<col width="74px"/>
							<col width="74px"/>
							<col width="25px"/>
							<col width="25px"/>
							<col width="25px"/>
							<col width="60px"/>
							<col width="60px"/>
							<col/>
							<col width="15px"/>
						</c-rt:otherwise>
					</c-rt:choose>				
				</colgroup>
      			<thead>
      				<tr>
      					<td class="col-rowspanMid" rowspan="2" style="padding-left: 10px">RA정보코드</td>
      					<td class="col-rowspanMid" rowspan="2">RA정보명칭</td>
      					<td class="col-rowspanMid" rowspan="2">연관<br/>프로세스</td>
      					<td colspan="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      					RA정보보안요구사항</td>
      					<td colspan="6">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      					RA정보가치평가</td>
      					<td></td>
      				</tr>
      				<tr>
      					<td>기밀성</td>
      					<td>무결성</td>
      					<td>가용성</td>
      					<td>C</td>
      					<td>I</td>
      					<td>A</td>
      					<td>보안점수</td>
      					<td>보안등급</td>
      					<td>기밀등급</td>
      					<td></td>
      				</tr>
      			</thead>
      		</table>
      		<div  class="scrollDIV" style="height: 250px;">
      		<table class="table-long" style="margin: 0 auto;">
      			<colgroup>
				<c-rt:choose>
					<c-rt:when test="${isMSIE67}">
							<col width="71px"/>
							<col width="85px"/>
							<col width="81px"/>
							<col width="63px"/>
							<col width="63px"/>
							<col width="63px"/>
							<col width="26px"/>
							<col width="26px"/>
							<col width="26px"/>
							<col width="51px"/>
							<col width="51px"/>
							<col/>
							<col width="15px"/>
						</c-rt:when>
						<c-rt:otherwise>
							<col width="80px"/>
							<col width="91px"/>
							<col width="74px"/>
							<col width="74px"/>
							<col width="74px"/>
							<col width="74px"/>
							<col width="25px"/>
							<col width="25px"/>
							<col width="25px"/>
							<col width="60px"/>
							<col width="60px"/>
							<col/>
							<col width="15px"/>
					</c-rt:otherwise>
				</c-rt:choose>
			</colgroup>
      			<tbody>
      				<c:choose>
                    	<c:when test="${fn:length(list)!= 0}">
                       	<c:forEach var="list" items="${requestScope.list}" varStatus="status">
                   			<%--
                   			<tr onmouseover="ChangeBackground(this,'over','${status.index}');" onmouseout="ChangeBackground(this,'out','${status.index}');" class="odd">
                   			 --%>
                   			  <tr <c:if test="${status.index%2==0 }">class="odd"</c:if> onmouseover="ChangeBackground(this,'over','${status.index}');" onmouseout="ChangeBackground(this,'out','${status.index}');">
                    			<td style="padding-left: 10px">
                    				<div class="ellipsis" style="width:100%;" title='${list.rainfo_id }'>${list.rainfo_id }</div>
                    			</td>
                    			<td>
                    				<div class="ellipsis"  style="width:100%;" title='${list.rainfo_nm }'>${list.rainfo_nm }</div>
                    			</td>
                    			<td>
                    				<div class="ellipsis"  style="width:100%;" title='${list.rainfo_nm }'>${list.rainfo_nm }</div>
                    			</td>
                    			<td>
                    				<div class="ellipsis" style="width:100%;" title="${list.c_memo }">${list.c_memo }</div>
                    			</td>
                    			<td>
                    				<div class="ellipsis" style="width:100%;" title="${list.i_memo }">${list.i_memo }</div>
                    			</td>
                    			<td>
                    				<div class="ellipsis" style="width:100%;" title="${list.a_memo }">${list.a_memo }</div>
                    			</td>
                    			<td>
                    				<c:if test="${list.ascu_level!=null }">
                    					<fmt:formatNumber value="${list.c_score }" pattern="0"/>
                    				</c:if>
                    			</td>
                    			<td>
                    				<c:if test="${list.ascu_level!=null }">
                    					<fmt:formatNumber value="${list.i_score }" pattern="0"/>
                    				</c:if>
                    			</td>
                    			<td>
                    				<c:if test="${list.ascu_level!=null }">
                    					<fmt:formatNumber value="${list.a_score }" pattern="0"/>
                    				</c:if>
                    			</td>
                    			<td>
                    				<c:if test="${list.ascu_level!=null }">
                    					&nbsp;&nbsp;<fmt:formatNumber value="${list.t_score }" pattern="0"/>
                    				</c:if>
                    			</td>
                    			<td>
                    				<div class="ellipsis" style="width:100%;" title="${list.ascu_level }">${list.ascu_level }</div>
                    			</td>
                    			<td>
                    				<div class="ellipsis" style="width:100%;" title="${list.asc_level }">${list.asc_level }</div>
                    			</td>
	   					 	<td></td>
                    		</tr>
                    	</c:forEach>
                    	</c:when>
                    	<c:otherwise>
                    		<tr class="odd">
								<td colspan="13" class="noDataTD">-데이터가 없습니다-</td>
							</tr>
                    	</c:otherwise>
                    	</c:choose>
      			</tbody>
      		</table>
      		</div>
   		</form>
	</div>
</div>
</body>
</html>
